﻿using System;
using System.Collections.Generic;

namespace IOA.MES.EsbApi.Models.Request.WorkOrder
{
    /// <summary>
    /// 创建工单请求对象
    /// </summary>
    public class CreateWorkOrderRequest
    {
        public string OrgCode { get; set; }
        public string WipEntityNumber { get; set; }
        public string WipEntityType { get; set; }
        public int AssemblyItemId { get; set; }
        public string AssemblyItemNumber { get; set; }
        public string ClassCode { get; set; }
        public string ClassDesc { get; set; }
        public string UnitOfMeasure { get; set; }
        public string Status { get; set; }
        public int Quantity { get; set; }
        public string StartDate { get; set; }
        public string CompleteDate { get; set; }
        public string SaleContractNumber { get; set; }
        public string ScheduleGroupName { get; set; }
        public string WipEntityDesc { get; set; }
        public string CompletionSubinv { get; set; }
        public string CompletionLocator { get; set; }
        public string GlassType { get; set; }
        public string Attr1 { get; set; }
        public string Attr2 { get; set; }
        public string Attr3 { get; set; }
        public string Attr4 { get; set; }
        public string Attr5 { get; set; }
        public List<WorkOrderBom> Components { get; set; } = new List<WorkOrderBom>();
    }

    public class WorkOrderBom
    {
        public int ComponentId { get; set; }
        public string ComponentNumber { get; set; }
        public string OpreationSeqNum { get; set; }
        public string DepartmentCode { get; set; }
        public string RequireDate { get; set; }
        public string UnitOfMeasure { get; set; }
        public decimal QuantityPerAssembly { get; set; }
        public decimal RequireQty { get; set; }
        public string WipEntityType { get; set; }
        public string ItemIssueType { get; set; }
        public string Subinventory { get; set; }
        public string Locator { get; set; }
        public string ManufactureNum { get; set; }
        public string ManufactureName { get; set; }
        public string AttritionRate { get; set; }
        public string ElecResistivity { get; set; }
        public string DrawingNo { get; set; }
        public string Efficiency { get; set; }
        public string Color { get; set; }
        public string Comment { get; set; }
        public string Attr1 { get; set; }
        public string Attr2 { get; set; }
        public string Attr3 { get; set; }
        public string Attr4 { get; set; }
        public string Attr5 { get; set; }
    }
}
